package com.simulation.superlotto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.simulation.superlotto.model.Contrast;
import com.simulation.superlotto.model.Superlotto;
import com.simulation.superlotto.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ：XXX
 * @date ：Created in 2020/11/30
 * @description ：
 * @version: 1.0
 */
@Mapper
public interface SuperlottoDao extends BaseMapper<Superlotto> {
    @Select("select super_id from superlotto ORDER BY super_id desc limit 1")
    long selectbylastId();

    List<Contrast> selectContrasts(Object p0);


    @Select("select * from user where user_name=#{userName}")
    User selectUserId(@Param("userName") String userName);
}
